<template>
  <div class="home">
    我也是共享主页
    <cool-button @click="toShare">跳转到共享页面</cool-button>
  </div>
</template>
<script setup>
import CoolButton from '@/components/CoolButton.vue'
import { useRouter } from 'vue-router'
const router = useRouter()
const toShare = () => {
  router.push('/share')
}
</script>

<style scoped>
.home {
  text-align: center;
  margin-top: 24px;

}
</style>
